package com.suep.file.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;


import org.springframework.core.io.Resource;
import org.springframework.web.multipart.MultipartFile;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.MalformedURLException;

public interface IFileService {



    public String saveFile(MultipartFile file,Integer userId) throws IOException;

    /*
    * 下载文件*/
    Resource downloadFile(String fileName) throws MalformedURLException, FileNotFoundException;

    public Resource loadFile(String filePath) throws MalformedURLException, FileNotFoundException;

}
